<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model app\models\TaokeOrderInfo */

$this->title = $model->title;
$this->params['breadcrumbs'][] = ['label' => 'Taoke Order Infos', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="taoke-order-info-view">

    <h1><?= Html::encode($this->title) ?></h1>

    <p>
        <?= Html::a('Update', ['update', 'id' => $model->_id], ['class' => 'btn btn-primary']) ?>
        <?= Html::a('Delete', ['delete', 'id' => $model->_id], [
            'class' => 'btn btn-danger',
            'data' => [
                'confirm' => 'Are you sure you want to delete this item?',
                'method' => 'post',
            ],
        ]) ?>
    </p>

    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            '_id',
            'id',
            'goodsid',
            'title',
            'd_title',
            
[
    'attribute'=>'pic',
    'value'=>$model->pic,
    'format' => ['image',['width'=>'100']],
],
            // 'cid',

    [
    'attribute' => 'opty',
    'value' => $model->getOpty($model->opty),
    ],
    [
    'attribute' => 'cid',
    'value' => $model->getCid($model->cid),
    ],

            'org_price',
            'price',
            'istmall',
            'sales_num',
            'dsr',
            'sellerid',
            'commission',
            'commission_jihua',
            'commission_queqiao',
            'jihua_link',
            'que_siteid',
            'jihua_shenhe',
            'introduce',
            'quan_id',
            'quan_price',
            'quan_time',
            'quan_surplus',
            'quan_receive',
            'quan_condition',
            'quan_m_link',
            'quan_link',
            'ts',
            'use_cnt',
            'sort',
            'status',
            // 'opty',
        ],
    ]) ?>

</div>
